<?
################################################################################
##                                                                            ##
##   Copyright 2002 Fineware, Inc. All rights reserved.                       ##
##   Version : Release 2, 1109                                                ##
##                                                                            ##
##                                                                            ##
################################################################################

#Database constants


//local host
Define("_HOST","localhost");
/*
Define("_DATABASE","acwlddb_en");
Define("_USERNAME","acwld_ur2");
Define("_PASSWORD","acwld8249");

Define("_DATABASE2","acwlddb_dh");
Define("_USERNAME2","acwld_ur3");
Define("_PASSWORD2","acwld8249");

Define("_DATABASE3","acwlddb_tw");
Define("_USERNAME3","acwld_ur1");
Define("_PASSWORD3","acwld8249");
*/
Define("_DATABASE","awtestdb_en");
Define("_USERNAME","awtestdbuser_en");
Define("_PASSWORD","awtestdbpwd_en");
/*
Define("_DATABASE2","awtestdb_dan");
Define("_USERNAME2","awtestdbuser_dan");
Define("_PASSWORD2","awtestdbuser_dan2006ken@imaker112");

Define("_DATABASE3","awtestdb_cn");
Define("_USERNAME3","awtestdbuser_cn");
Define("_PASSWORD3","awtestdbuser_cn2006ken@imaker112");
*/
#Special Config   
Define("_TITLE","Venus");
Define("_ADMIN","");
Define("_ADMINEMAIL","");
//Define ("_COPYRIGHT","Copyright &copy; Fineware, all rights reserved.");

#CSS Plug-in
Define("_CSS","css.css");

#Color Setting

ini_set('register_globals','1');
#Session
session_start();


#Validate User
$VALIDATE_USER = "yes";
/********+++++++++ڳӦµĻ ʼ+++++++++++*********/
/*
ini_get()ڻֵ˴ǻȡȫֱǷ
*/
$register_globals = @ini_get('register_globals');
/*
ȡmagic_quotes_gpcǷ
phpGetPostCookieԶת
*/
$magic_quotes_gpc = get_magic_quotes_gpc();

if(!$register_globals || !$magic_quotes_gpc) 
{
	/*
	δȫֺ  δħ
	*/
	@extract($_POST, EXTR_SKIP);
	@extract($_GET, EXTR_SKIP);
	/*
	1ʹԼת庯postgetת崦
	2extract()Ϊ˷㴴ʹõģֱӰеġֵӦֵ
	ڶEXTR_SKIP˼ǡͬıԹȡ
	3@ڴƣֹûĴϢ
	*/
	if(!$register_globals) {
	  foreach($_FILES as $key => $val) {
	   $$key = $val['tmp_name'];
	   ${$key.'_name'} = $val['name'];
	   ${$key.'_size'} = $val['size'];
	   ${$key.'_type'} = $val['type'];
	  }
	  /*
	  Ϊرȫֱ
	  $HTTP_POST_FILESнűʹãҪļϴ֪ĶԲԣ
	  foreach÷׵Բֲ
	  иԪصΪȡ֣ͬע⡰ıʹã
	  */
	}
}
/********+++++++++ڳӦµĻ +++++++++++*********/

$FILETYPE = ".php";

$COPYRIGHT = "Copyright &copy; iMaker Solutions Co., all rights reserved.";

global $PIC_DIR;

$PIC_DIR = "../pictures/";

$nav_target = array(
  "course/main",
  "customer/customer_main",
  "media/media_main",
  "myaccount/myaccount",
  "user/info/user_menu",  
);

$nav_img = array(
  "nav7",
  "nav2",
  "nav3",
  "nav5",
  "nav6",  
);


?>